package com.jing21.learn.elasticsearch;

import com.jing21.learn.elasticsearch.intf.enums.EsIndexTypeEnum;
import lombok.Data;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Map;

/**
 * @author zhengjing
 * @version 1.0
 * @date: 2017/10/23 17:23
 */
@Data
public class EsQueryConfig {

    EsIndexTypeEnum esIndexTypeEnum;

    /**
     * 是否制定返回的字段
     */
    private boolean sourse = true;

    Map<String ,EsQueryFieldConfig> staticConfig;

    Map<String, EsQueryFieldConfig> fieldConfigMap;

    public static void main(String[] args) throws UnsupportedEncodingException {
        System.err.println(URLDecoder.decode("http%3A%2F%2Flocalhost%3A8091%2Fwebjars%2Fspringfox-common-ui%2Fo2c" +
                ".html&realm=openid&client_id=common&scope=openid&state=oauth2","utf-8"));
    }

}
